import request from '/@/request/https'
import { AxiosPromise } from 'axios'

export interface submitParam {
    credential: string
}

// 跳出接口
export function SpeciallyValidateUserID(): AxiosPromise {
    return request({
        url:`/policyReportQuery/SpeciallyValidateUserID`,
        method: 'post',
    })
}

// 个人信息
export function getReportResult(data:any): AxiosPromise {
    return request({
        url:`/policyReportQuery/getReportResult`,
        method: 'post',
        data
    })
}
// 修改状态
export function updateReportStatus(data:any): AxiosPromise {
    return request({
        url:`/policyReportQuery/updateReportStatus`,
        method: 'post',
        data
    })
}
// 分享链接
export function shareLink(data:any): AxiosPromise {
    return request({
        url:`/inspectionTask/shareLink`,
        method: 'post',
         data
    })
}
// 客户标识
export function createCustomMark(data:any): AxiosPromise {   
  return request({
        url:`/letterController/createCustomMark`,
        method: 'post',
        data
    })
}
// 假接口
export function true0rFalse(data:any): AxiosPromise {
    return request({
        url:`/letterController/trueOrFalse`,
        method: 'post',
        data
    })
}
// 获取分钟
export function getConfiguration(data): AxiosPromise {
    return request({
        url:`/letterController/getConfiguration?configuration=`+data.name,
        method: 'get'
    })
}

// 获取内容
export function getReportGeneratingModel(data): AxiosPromise {
    return request({
        url:`/letterController/getReportGeneratingModel`,
        method: 'post',
        data
    })
}

// 生成验证码
export function createAuthorizationCode(data): AxiosPromise {
    return request({
        url:`/sharingAuthorization/createAuthorizationCode`,
        method: 'post',
        data
    })
}

// 获取授权码过期时间
export function getAuthorizationCodeExpire(data): AxiosPromise {
    return request({
        url:`/sharingAuthorization/getAuthorizationCodeExpire`,
        method: 'post',
        data
    })
}

// 生成验证码
export function authorizationCodeList(data): AxiosPromise {
    return request({
        url:`/sharingAuthorization/authorizationCodeList`,
        method: 'post',
        data
    })
}

// 生成验证码
export function taskInvitationInfo(data): AxiosPromise {
    return request({
        url:`/inspectionTask/taskInvitationInfo`,
        method: 'post',
        data
    })
}

// 获取三要素
export function getCustomerInfoByTaskCode(data): AxiosPromise {
    return request({
        url:`/push/getCustomerInfoByTaskCode`,
        method: 'post',
        data
    })
}

// 判断白名单
export function cardWhitelist(data): AxiosPromise {
    return request({
        url:`/letterController/cardWhitelist`,
        method: 'post',
        data
    })
}

// 意愿核身
export function detectAuthUrl(data): AxiosPromise {
    return request({
        url:`/detectAuth/detectAuthUrl`,
        method: 'post',
        data
    })
}

// 意愿结果
export function detectAuthInfo(data): AxiosPromise {
    return request({
        url:`/detectAuth/detectAuthInfo`,
        method: 'post',
        data
    })
}

// 判断授权码
export function taskAuthorizationCode(data): AxiosPromise {
    return request({
        url:`/sharingAuthorization/taskAuthorizationCode`,
        method: 'post',
        data
    })
}

// 温馨提示新模版
export function getConfigurationNew(params): AxiosPromise {
    return request({
        url:`/letterController/getConfigurationNew`,
        method: 'get',
        params
    })
}